home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CDictionary 1.0 / CStaticInteger.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.1 KB  |  33 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2. CStaticInteger.h
  3.  
  4. SUPERCLASS = CStaticString
  5.  
  6. ******************************************************************************/
  7.  
  8. #include "CStaticInteger.h"
  9. #include "defs.h"
  10.  
  11. /******************************************************************************/
  12. void CStaticInteger::IStaticInteger(CView *anEnclosure, CBureaucrat *aSupervisor,
  13.                     Int16 aWidth, Int16 aHeight, Int16 aHEncl, Int16 aVEncl,
  14.                     SizingOption aHSizing, SizingOption aVSizing, Int32 initValue)
  15. {
  16.     Str255    numString;
  17.     
  18.     NumToString( initValue, numString);
  19.     CStaticString::IStaticString( anEnclosure, aSupervisor, aWidth, aHeight,
  20.                 aHEncl, aVEncl, aHSizing, aVSizing, numString);
  21.  
  22. }    /* CStaticInteger::IStaticInteger */
  23. /******************************************************************************/
  24. void CStaticInteger::SetIntValue( Int32    aValue)
  25. {
  26.     Str255    numString;
  27.     
  28.     NumToString( aValue, numString);
  29.     CStaticString::SetStaticString( numString);
  30.  
  31. }    /* CStaticInteger::SetIntValue */
  32. /******************************************************************************/
  33.